<!-- See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination -->

<?php if ($this->pageCount > 1): ?>
    <div class="paginationControl">
        <!-- Anterior -->
    <?php if (isset($this->previous)): ?>
        <a href="<?php echo $this->url(array('pagina' => $this->previous)); ?>">&lt; Anterior </a> |
    <?php else: ?>
            <span class="disabled">&lt; Anterior</span> |
    <?php endif; ?>
        <!-- Enlaces numéricos -->
    <?php foreach ($this->pagesInRange as $page): ?>
    <?php if ($page != $this->current): ?>
             <a href="<?php echo $this->url(array('pagina' => $page)); ?>"><?php echo $page; ?></a> |
    <?php else: ?>
             <?php echo $page; ?> |
    <?php endif; ?>
    <?php endforeach; ?>
         <!-- Siguiente -->
    <?php if (isset($this->next)): ?>
         <a href="<?php echo $this->url(array('pagina' => $this->next)); ?>">Siguiente &gt;</a>
    <?php else: ?>
         <span class="disabled">Siguiente &gt;</span>
    <?php endif; ?>
    </div>
<?php endif; ?>